random point seeds within a cyircle python

29

r = R * sqrt(random())
theta = random() * 2 * PI
x = centerX + r * cos(theta)
y = centerY + r * sin(theta)

Comments

Submit
0 Comments